/**
 *	UTILITIES.H - general utilities
 *	Author: Fabio Garcia <fabio@blastpress.com>
 **/

#ifndef UPN_UTILITIES_H
#define UPN_UTILITIES_H

#include <unistd.h>

/** application constants and variables **/
#define LISTENQ (1024)
#define LISTEN_PORT (31337)

/** function prototypes **/
void ErrorQuit(char const *msg);
ssize_t ReadLine(int socket, void *vptr, size_t maxlen);
ssize_t WriteLine(int socket, const void *vptr, size_t n);

#endif
